package com.ruoyi.mall.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 抢购商品池对象 mall_time_goods_pool
 * 
 * @author ruoyi
 * @date 2022-03-16
 */
public class MallTimeGoodsPool extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品池ID */
    private Long id;

    /** 0为第一个，上一个所属用户ID */
    @Excel(name = "0为第一个，上一个所属用户ID")
    private Long pid;

    /** 归属人ID */
    @Excel(name = "归属人ID")
    private Long userId;

    /** 归属人名 */
    @Excel(name = "归属人名")
    private String userName;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 现价 */
    @Excel(name = "现价")
    private BigDecimal price;

    /** 所属仓库ID */
    @Excel(name = "所属仓库ID")
    private Long regionId;

    /** 所属仓库名 */
    @Excel(name = "所属仓库名")
    private String regionName;

    /** 是否发布：0-未发布 1-已发布 */
    @Excel(name = "是否发布：0-未发布 1-已发布")
    private Integer isPublish;

    /** 商品封面图 */
    @Excel(name = "商品封面图")
    private String coverImg;

    /** 详情 */
    @Excel(name = "详情")
    private String description;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setRegionId(Long regionId) 
    {
        this.regionId = regionId;
    }

    public Long getRegionId() 
    {
        return regionId;
    }
    public void setRegionName(String regionName) 
    {
        this.regionName = regionName;
    }

    public String getRegionName() 
    {
        return regionName;
    }
    public void setIsPublish(Integer isPublish) 
    {
        this.isPublish = isPublish;
    }

    public Integer getIsPublish() 
    {
        return isPublish;
    }
    public void setCoverImg(String coverImg) 
    {
        this.coverImg = coverImg;
    }

    public String getCoverImg() 
    {
        return coverImg;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("name", getName())
            .append("price", getPrice())
            .append("regionId", getRegionId())
            .append("regionName", getRegionName())
            .append("isPublish", getIsPublish())
            .append("coverImg", getCoverImg())
            .append("description", getDescription())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
